package com.jiaai.trade.api;

import com.jiaai.trade.model.TTradeRoleVO;

/**
 * <p>
 * TODO
 * </p>
 *
 * @author 佳爱网络科技
 * @version V1.0
 * @title TTradeRoleApi
 * @since 2017/10/19
 */
public interface TTradeRoleApi {
    /**
     *删除单个公会下的单个成员
     * @param id
     * @return
     */
    Object delete(Integer id,Integer tradeId) throws Exception;
    /**
     *添加成员
     * @param tradeId,mId,isAccaus
     * @return
     */
    Object joinTrade(Integer tradeId, String mId,boolean isAccaus) throws Exception;
    /**
     *修改成员信息
     * @param id,tradeId,mId,roleName
     * @return
     */
    Object update(Integer id,Integer tradeId,Integer roleName,String mId) throws Exception;
    /**
     *审核通过成员修改审核状态
     * @param id
     * @param applyState
     * @return
     */
    Object changeState(Integer id,Integer applyState,Integer tradeId,String mId) throws Exception;

    /**
     *查询单个成员信息
     * @param
     * @param tradeId,mId
     * @return
     */
    Object findById(Integer tradeId,String mId);

    /**
     *查询单个公会的所有成员
     * @param curr，tFamilyVO
     * @return
     */
    Object allrole(Integer curr,TTradeRoleVO tradeRoleVO) throws Exception;
}
